<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='床位管理-添加',jsPaths='/static/js/baseinfo/bedtype/add.js')">
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                    <a href="">床位设置</a>
                    <a href="/bedtype">床位类型</a>
                    <a><cite>新增</cite></a>
                </span>
    </div>

    <!--主体内容区-->
    <div class="form-content layui-container">
        <form class="layui-form" th:action="@{/bedtype/save}" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label must">类型名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name"  maxlength="20" lay-verify="required" placeholder="请输入类型名称" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label must">月价格</label>
                <div class="layui-input-block">
                    <input type="number" name="price"  oninput="if (value.length>4)value=value.slice(0,4)" lay-verify="required" placeholder="请输入床位月价格" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-normal" lay-submit lay-filter="submitBtn">保存</button>
                    <a href="/bedtype" class="layui-btn layui-btn-primary">返回</a>
                </div>
            </div>
        </form>

    </div>
</div>
</html>